/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 购买活动记录表
 *
 * @author proj code generator
 * @date 2021-05-25 10:53:07
 */
@Data
@TableName("v_order_activity")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "购买活动记录表")
public class VOrderActivity extends Model<VOrderActivity> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 活动ID
     */
    @ApiModelProperty(value="活动ID")
    private Long activityId;
    /**
     * 活动名称
     */
    @ApiModelProperty(value="活动名称")
    private String name;
    /**
     * 活动外显图(活动广告图)
     */
    @ApiModelProperty(value="活动外显图(活动广告图)")
    private String externalImg;
    /**
     * 小程序卡片分享图
     */
    @ApiModelProperty(value="小程序卡片分享图")
    private String externalShareImg;
    /**
     * 活动开始时间
     */
    @ApiModelProperty(value="活动开始时间")
    private LocalDateTime startTime;
    /**
     * 活动结束时间
     */
    @ApiModelProperty(value="活动结束时间")
    private LocalDateTime endTime;
    /**
     * 抢购类型（活动标签）： 0限时抢购 1限时秒杀
     */
    @ApiModelProperty(value="抢购类型（活动标签）： 0限时抢购 1限时秒杀")
    private Integer activityType;
    /**
     * 购买类型  0不限次数  1限购次数
     */
    @ApiModelProperty(value="购买类型  0不限次数  1限购次数")
    private Integer purchaseType;
    /**
     * 购买次数
     */
    @ApiModelProperty(value="购买次数")
    private Integer purchaseNumber;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
    private Integer delFlag;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;
    }
